﻿<%@ Page Language="C#" MasterPageFile="~/MasterAdmin.master" AutoEventWireup="true" CodeFile="GaragemForm.aspx.cs" Inherits="AreaRestrita_GaragemForm" %>

<asp:Content ID="Content2" ContentPlaceHolderID="cphTitulo" runat="server">
   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPagina" runat="server">
    <asp:ScriptManager ID="sm1" runat="server">
    </asp:ScriptManager> 
    
     <div id="stylized" class="myform">
           <h1>Modelo</h1>
           <p>Cadastro de modelos</p>
           <div>
            <label>Nome<span class="small"> Nome da garagem</span></label>            
                <asp:TextBox ID="txtNome" CssClass="input" runat="Server"></asp:TextBox>  
                <asp:RequiredFieldValidator ID="rfvNome" Text="*" ForeColor="Red" ValidationGroup="Salvar" SetFocusOnError="true" ControlToValidate="txtNome" runat="server"></asp:RequiredFieldValidator>                                 
           </div>
           <div>
                <label> Descrição<span class="small"> Descr.da Garagem</span></label>      
                <asp:TextBox ID="txtDescricao" CssClass="input"  runat="Server" TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvDescricao" Text="*" ForeColor="Red" ValidationGroup="Salvar" SetFocusOnError="true" ControlToValidate="txtDescricao" runat="server"></asp:RequiredFieldValidator>
            <div>
                 <label>Foto<span class="small"> Imagem da Garagem </span></label>      
                        <asp:FileUpload  ID="fupTumbnail" runat="server" onload="fupTumbnail_Load"   CssClass="input" />
                         <label>Imagem<span class="small">Clique para Salvar  </span></label>                          
                        <asp:Button ID="btnPost" Text="Salvar a Imagem" runat="server" onclick="btnPost_Click" CssClass="input"  />
                        <div style="float:right;">
                            <asp:Image ID="imgTumbnail" ImageUrl="~/Imagens/noPhoto.png"  Width= "210px" Height="120px" runat="server" CssClass="button"  />
                        </div>
                   <label>Ativo<span class="small">Clique para ativar </span></label>
                        <asp:CheckBox ID="chkAtivo" Text="" runat="server" CssClass="input" />
                     
                       
                
                            <asp:Button Text="Salvar" ID="btnSalvar" runat="server"  ValidationGroup="Salvar" onclick="btnSalvar_Click"  CssClass="button" />
                        </div>
                    
    <asp:HiddenField ID="hdfID" runat="server" />
    <asp:HiddenField ID="hdfImg" runat="server" />
</asp:Content>
